package com.itheima.homework.homework5;

public class Demo5 {
    // 使用匿名内部类的方式实现多线程
    public static void main(String[] args) {
       /* Runnable runnable1 = new Runnable() {
            public void run() {
                System.out.println("do something...");
            }
        };
        runnable1.run();*/
      Runnable runnable= ()-> System.out.println("do something...") ;
runnable.run();
    }
}
interface  Runnable{
    void run();
        }
